/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link message_objects}.
 * </p>
 *
 * @author Cedric Nana
 * @see message_objects
 * @generated
 */
public class message_objectsWrapper implements message_objects,
	ModelWrapper<message_objects> {
	public message_objectsWrapper(message_objects message_objects) {
		_message_objects = message_objects;
	}

	@Override
	public Class<?> getModelClass() {
		return message_objects.class;
	}

	@Override
	public String getModelClassName() {
		return message_objects.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("messageobjectsID", getMessageobjectsID());
		attributes.put("object_id", getObject_id());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long messageobjectsID = (Long)attributes.get("messageobjectsID");

		if (messageobjectsID != null) {
			setMessageobjectsID(messageobjectsID);
		}

		Long object_id = (Long)attributes.get("object_id");

		if (object_id != null) {
			setObject_id(object_id);
		}
	}

	/**
	* Returns the primary key of this message_objects.
	*
	* @return the primary key of this message_objects
	*/
	@Override
	public long getPrimaryKey() {
		return _message_objects.getPrimaryKey();
	}

	/**
	* Sets the primary key of this message_objects.
	*
	* @param primaryKey the primary key of this message_objects
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_message_objects.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the messageobjects i d of this message_objects.
	*
	* @return the messageobjects i d of this message_objects
	*/
	@Override
	public long getMessageobjectsID() {
		return _message_objects.getMessageobjectsID();
	}

	/**
	* Sets the messageobjects i d of this message_objects.
	*
	* @param messageobjectsID the messageobjects i d of this message_objects
	*/
	@Override
	public void setMessageobjectsID(long messageobjectsID) {
		_message_objects.setMessageobjectsID(messageobjectsID);
	}

	/**
	* Returns the object_id of this message_objects.
	*
	* @return the object_id of this message_objects
	*/
	@Override
	public long getObject_id() {
		return _message_objects.getObject_id();
	}

	/**
	* Sets the object_id of this message_objects.
	*
	* @param object_id the object_id of this message_objects
	*/
	@Override
	public void setObject_id(long object_id) {
		_message_objects.setObject_id(object_id);
	}

	@Override
	public boolean isNew() {
		return _message_objects.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_message_objects.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _message_objects.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_message_objects.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _message_objects.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _message_objects.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_message_objects.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _message_objects.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_message_objects.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_message_objects.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_message_objects.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new message_objectsWrapper((message_objects)_message_objects.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.message_objects message_objects) {
		return _message_objects.compareTo(message_objects);
	}

	@Override
	public int hashCode() {
		return _message_objects.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.message_objects> toCacheModel() {
		return _message_objects.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.message_objects toEscapedModel() {
		return new message_objectsWrapper(_message_objects.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.message_objects toUnescapedModel() {
		return new message_objectsWrapper(_message_objects.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _message_objects.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _message_objects.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_message_objects.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof message_objectsWrapper)) {
			return false;
		}

		message_objectsWrapper message_objectsWrapper = (message_objectsWrapper)obj;

		if (Validator.equals(_message_objects,
					message_objectsWrapper._message_objects)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public message_objects getWrappedmessage_objects() {
		return _message_objects;
	}

	@Override
	public message_objects getWrappedModel() {
		return _message_objects;
	}

	@Override
	public void resetOriginalValues() {
		_message_objects.resetOriginalValues();
	}

	private message_objects _message_objects;
}